#!/usr/bin/env python3
# -*-coding:utf-8 -*-
# __author__=LuLu
from selenium.webdriver.common.by import By

"""
会员列表的元素类
"""


class MemberLoc(object):
    """
    搜索栏
    """
    startTime = (By.XPATH, '//*[@id="createStartTime"]')  # 开始时间
    endTime = (By.XPATH, '//*[@id="createEndTime"]')  # 结束时间
    accountNumber = (By.XPATH, '//*[@id="accountNumber"]')  # 会员编号
    nickName = (By.XPATH, '//*[@id="nickName"]')  # 用户名
    mobile = (By.XPATH, '//*[@id="mobile"]')  # 手机号码
    sex = (By.XPATH, '//*[@id="sex"]')  # 性别
    # sex_list=(By.XPATH,'//*[@id="etravel"]/div/div[3]/div/div/div/div[1]/lable[4]/div/span[1]/div/ul')  # 性别列表
    # accountManagerType = (By.XPATH, '//*[@id="accountManagerType"]')  # 会员角色

    status = (By.XPATH, '//*[@id="status"]')  # 会员状态
    registerSourceType = (By.XPATH, '//*[@id="registerSourceType"]')  # 注册来源
    inviteCompanyFullName = (By.XPATH, '//*[@id="inviteCompanyFullName"]')  # 邀请公司
    inviteNickName = (By.XPATH, '//*[@id="inviteNickName"]')  # 邀请人

    """按钮"""
    SearchButton = (By.XPATH, '//*[@id="search-btn"]/button')  # 搜索按钮
    searchCleanButton = (By.XPATH, '//*[@id="search-clean-btn"]/button')  # 清空
    memberTable = (
        By.XPATH, '//*[@id="etravel"]/div/div[3]/div/div[2]/div[3]/div[1]/div[2]/div[2]/table/tbody')  # 会员列表

    """翻页控件"""
    PageNum = (By.XPATH, '//*[@id="etravel"]/div/div[3]/div/div[2]/div[3]/div[1]/div[3]/div[1]/span[1]')
    PageTurn = (By.XPATH, '//*[@id="etravel"]/div/div[3]/div/div[2]/div[3]/div[1]/div[3]/div[2]/ul')
